package com.cxf.windex.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
@Table(name = "b_money")
public class Money {
    /**
     * 资金ID
     */
    @Id
    private Long id;

    /**
     * 微信openid
     */
    private String wxopenid;

    /**
     * 名称
     */
    private String name;

    /**
     * 状态  1正常 2异常 
     */
    private String status;

    /**
     * 佣金钱包
     */
    private BigDecimal income;

    /**
     * 余额钱包
     */
    private BigDecimal cost;

    /**
     * 积分钱包
     */
    private BigDecimal score;

    /**
     * 充值钱包
     */
    private BigDecimal recharge;

    /**
     * 提现钱包
     */
    private BigDecimal withdraw;

    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    private Date crtTime;

    /**
     * 创建用户IP
     */
    @Column(name = "crt_host")
    private String crtHost;


}